<template>
  <div class="detail-footer">
    <span @click="handlePrint">【打印】</span>
    <span @click="backToTop">【回到顶部】</span>
    <span @click="goBack">【返回】</span>
  </div>
</template>
<script>
export default {
  name: 'DetailFooter',
  methods: {
    handlePrint() {
      window.print();
    },
    backToTop() {
      window.scrollTo({
        top: 0,
        behavior: 'smooth'
      });
    },
    goBack() {
      this.$router.go(-1);
    }
  }
}
</script>
<style lang="scss" scoped>

</style>
